{% extends "base.html" %}

{% block content %}
<div class="container mt-5">
    <div class="card shadow-sm">
        <div class="card-header bg-primary text-white">
            <h4 class="mb-0">评价 {{ progress.topic.name }} - {{ progress.stage }} 进度</h4>
        </div>
        <div class="card-body">
            <form method="post">
                {% csrf_token %}
                <div class="mb-3">
                    <label for="score" class="form-label">评分</label>
                    <input type="number" class="form-control" id="score" name="score" required>
                </div>
                <div class="mb-3">
                    <label for="comment" class="form-label">评语</label>
                    <textarea class="form-control" id="comment" name="comment" rows="5"></textarea>
                </div>
                <div class="mb-3">
                    <label for="status" class="form-label">状态</label>
                    <select class="form-select" id="status" name="status" required>
                        <option value="passed">通过</option>
                        <option value="rejected">打回</option>
                    </select>
                </div>
                <button type="submit" class="btn btn-primary">保存评价</button>
            </form>
        </div>
    </div>
</div>
{% endblock %}
